import React from 'react';
import ReactDOM from 'react-dom/client';
import { RouterProvider } from 'react-router-dom';
import '@/style/index.scss';
import router from './router';
import { Provider } from 'react-redux';
import store from './redux';
// import { KeepAliveProvider } from 'keepalive-react-component';

const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement);
root.render(
  <Provider store={store}>
    {/* <KeepAliveProvider> */}
      <RouterProvider router={router} />
    {/* </KeepAliveProvider> */}
  </Provider>
);
